<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/h5/pages/public/head.jsp"%>

<!-- 在线支付 -->
<div id="ldhOnlinePay">
   	<!-- 接受参数 -->
	<input type="hidden" id="orderId" value="${param.orderId}" />
	<input type="hidden" id="orderAmount" value="${param.orderAmount}" />
	<div data-role="header" class="header_fixed">
    	<a data-transition="none" data-role="none" data-rel="back" class="back_btn">返回</a>
        <h1>付款</h1>
    </div>
    <div data-role="content">
    	<div class="row_a">
        	<ul>
        	    <%
        	    String ua = request.getHeader("user-agent").toLowerCase();
		        if (ua.indexOf("micromessenger") > 0) {// 是微信浏览器
		        	 %>	
		        	 <li><a rel="external" href="javascript:$ldh_pay.goWxPayOauth()" data-role="none" data-transition="none">微信支付</a></li>
		         <%	
		        }else{
		        	 %>
		        	<li><a rel="external" href="javascript:$ldh_pay.goAliPay()" data-role="none" data-transition="none">支付宝支付</a></li>
		        <%	
		        }
        	    %>    
            </ul>
        </div>
    </div>
    <script type="text/javascript">
	    seajs.use([ctx+'/v1/h5/js/custom/order/module-pay.js?'+Date.parse(new Date())],function(m){
			m.init(m);
		});
	 	document.title="云便利-付款";
    </script>
</div>
<%@ include file="/v1/h5/pages/public/footer.jsp"%>
